package C11_6_ExtractSubclass.refactorafter;

/**
 * @ClassName : LaborItem
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/15
 **/
public class LaborItem extends JobItem {

    /** 重构后 */
    protected Employee _employee;

    public LaborItem(int _quantity, Employee _employee) {
        super(0, _quantity);
        this._employee = _employee;
    }

    @Override
    public int getUnitPrice() {
        return _employee.getRate();
    }

    public Employee getEmployee() {
        return this._employee;
    }
}
